package com.canyou.archives.model.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 设备分类新增编辑模型
 *
 * @author index
 * @date 2021/12/08 15:42
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "CategoryDTO", description = "设备分类新增编辑模型")
public class CategoryDTO implements Serializable{

    @ApiModelProperty(value = "主键id")
    private Long id;

    @ApiModelProperty(value = "分类名称")
    private String cname;

    @ApiModelProperty(value = "使用状态：0未启用，1启用")
    private Integer state;

    @ApiModelProperty(value = "排序")
    private Integer sort;

}
